package Test;

/**
 * Created by 春旺 on 2017/4/25.
 */
public class Testargsfail {
    public static void main(String[] args) {
        int sum =  0;
        if (args.length==0)
       {

        }
        else {
            for (int i = 0; i < args.length;i++) {
                int a = Integer.parseInt(args[i]);

                sum += a;
            }
        }
        System.out.println("sum:" + sum);
    }
}
